// 自动生成模板Members
package hairmember

import (
	"time"
)

// members表 结构体  Members
type Members struct {
	Id                  *int64     `json:"id" form:"id" gorm:"primarykey;column:id;"`                                                                  //id字段
	MemberName          *string    `json:"memberName" form:"memberName" gorm:"comment:会员姓名;column:member_name;size:50;"`                               //会员姓名
	Phone               *string    `json:"phone" form:"phone" gorm:"comment:手机号;column:phone;size:20;"`                                                //手机号
	MemberLevel         *int8      `json:"memberLevel" form:"memberLevel" gorm:"comment:会员等级：1普通 2银卡 3金卡 4钻石;column:member_level;"`                    //会员等级：1普通 2银卡 3金卡 4钻石
	Balance             *float64   `json:"balance" form:"balance" gorm:"comment:账户余额;column:balance;size:10;"`                                         //账户余额
	TotalRecharge       *float64   `json:"totalRecharge" form:"totalRecharge" gorm:"comment:累计充值金额;column:total_recharge;size:10;"`                    //累计充值金额
	TotalConsumption    *float64   `json:"totalConsumption" form:"totalConsumption" gorm:"comment:累计消费金额;column:total_consumption;size:10;"`           //累计消费金额
	LastConsumptionTime *time.Time `json:"lastConsumptionTime" form:"lastConsumptionTime" gorm:"comment:最近消费时间;column:last_consumption_time;size:10;"` //最近消费时间
	Status              *int8      `json:"status" form:"status" gorm:"comment:状态：1正常 2停用;column:status;"`                                              //状态：1正常 2停用
	Remark              *string    `json:"remark" form:"remark" gorm:"comment:备注信息;column:remark;"`                                                    //备注信息
	CreatedAt           *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;"`                                                       //createdAt字段
	UpdatedAt           *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;"`                                                       //updatedAt字段
}

// TableName members表 Members自定义表名 members
func (Members) TableName() string {
	return "members"
}
